<template>
  <!-- 背景盒子 -->
  <div class="bg_box">
    <div class="title_div">
      <div class="box">
        <div>成员管理</div>
        <el-button icon="el-icon-refresh" @click="renovate">刷新</el-button>
      </div>
    </div>
    <!-- 元素盒子 -->
    <div class="content_box">
      <!-- 筛选查询 -->
      <div class="screening_F">
        <div class="screening_S1 screen">
          <div class="left">
            <img
              src="../assets/放大镜.png"
              alt=""
              class="magnifyingGlass"
            />筛选查询
          </div>
          <div class="right">
            收起筛选 &emsp;<el-button size="small">查询结果</el-button>
          </div>
        </div>
        <div class="screening_S2 screen">
          <div class="left">
            操作人员:&emsp;
            <select id="">
              <option value="" hidden>请选择</option>
              <option value="">123</option>
            </select>
          </div>
          <div class="left">
            操作日期:&emsp;
            <select id="select2">
              <option value="" hidden>请选择</option>
              <option value="">123</option>
            </select>
          </div>
        </div>
      </div>

      <!-- 表格 -->
      <div class="xx">
        <tr>
          <td>
            <img src="../assets/菜单.png" alt="" class="magnifyingGlass" />
            数据列表
          </td>
          <td class="log">
            清除日志:&emsp;
            <select id="select">
              <option value="" hidden>请选择</option>
              <option value="">123</option></select
            >&nbsp;
            <el-button size="small">&emsp;确定&emsp;</el-button>
            &nbsp;
            <select id="select2">
              <option value="" hidden>选择条数</option>
              <option value="">123</option>
            </select>
          </td>
        </tr>
      </div>
      <table border="1" id="table">
        <!-- 头部 -->
        <thead>
          <tr style="font-size: 14px; font-weight: bold">
            <td><input type="checkbox" /></td>
            <th>编号</th>
            <th>操作者</th>
            <th>操作日期</th>
            <th>IP地址</th>
            <th>操作记录</th>
          </tr>
        </thead>
        <!-- 身体 -->
        <tbody>
          <tr v-for="(item, index) in formlist" :key="index">
            <td><input type="checkbox" /></td>
            <td>{{ item.number }}</td>
            <td>{{ item.operator }}</td>
            <td>{{ item.dateOfOperation }}</td>
            <td>{{ item.iPAddress }}</td>
            <td style="text-align: left">{{ item.operationRecord }}</td>
          </tr>
        </tbody>
        <!-- 尾部 -->
        <tfoot>
          <tr>
            <td colspan="6" style="text-align: left">
              <input type="checkbox" />全选 &nbsp;
              <select id="select">
                <option value="" hidden>批量操作</option>
                <option value="">123</option></select
              >&nbsp;
              <el-button size="small">&emsp;确定&emsp;</el-button>
              <!-- 分页 -->
              <div class="page_Split">
                <div>
                  共<span class="red">{{ total / pagesize }}</span
                  >页/<span class="red">{{ total }}</span
                  >条数据
                </div>
                <el-pagination
                  background
                  @size-change="handleSizeChange"
                  @current-change="handleCurrentChange"
                  :current-page.sync="currentPage"
                  :page-size="pagesize"
                  layout="prev, pager, next, jumper"
                  :total="total"
                >
                </el-pagination>
              </div>
            </td>
          </tr>
        </tfoot>
      </table>
    </div>
    <!-- 页面下层数据 -->
      <div class="bottom">
        <div>Copyright © www.AxureUX.com, All Rights Reserved.</div>
        <div>Email: 5698401@qq.com QQ:5698401</div>
      </div>
  </div>
</template>  
<script>
export default {
  data() {
    return {
      value: "",
      currentPage: 1, //当前页
      total: 100, //数据总量
      pagesize: 10, //一页显示几条
      formlist: [
        {
          number: 1,
          operator: "admin",
          dateOfOperation: 2022 - 22 - 22,
          iPAddress: "123.123.123.124",
          operationRecord: "编辑会员账号:admin",
        },
        {
          number: 1,
          operator: "admin",
          dateOfOperation: 2022 - 22 - 22,
          iPAddress: "123.123.123.124",
          operationRecord: "编辑会员账号:admin",
        },
        {
          number: 1,
          operator: "admin",
          dateOfOperation: 2022 - 22 - 22,
          iPAddress: "123.123.123.124",
          operationRecord: "编辑会员账号:admin",
        },
        {
          number: 1,
          operator: "admin",
          dateOfOperation: 2022 - 22 - 22,
          iPAddress: "123.123.123.124",
          operationRecord: "编辑会员账号:admin",
        },
        {
          number: 1,
          operator: "admin",
          dateOfOperation: 2022 - 22 - 22,
          iPAddress: "123.123.123.124",
          operationRecord: "编辑会员账号:admin",
        },
        {
          number: 1,
          operator: "admin",
          dateOfOperation: 2022 - 22 - 22,
          iPAddress: "123.123.123.124",
          operationRecord: "编辑会员账号:admin",
        },
      ],
    };
  },
  methods: {
    //每页显示条数
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    //当前页码
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>
<style lang="less" scoped>
.title_div {
  background: #f3f3f3;
  height: 50px;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #e4e4e4;
}

.box {
  width: 85%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .el-button {
    width: 100px;
    height: 40px;
  }

  div {
    height: 15px;
    line-height: 15px;
    border-left: 6px solid #1abc9c;
    padding: 4px;
  }
}
.magnifyingGlass {
  /* margin-top: 15px; */
  width: 18px;
  vertical-align: -5px;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: rgb(88, 185, 157) !important;
}

.el-pagination.is-background .el-pager li:not(.active):hover {
  color: rgb(88, 185, 157) !important;
  outline: 1px solid rgb(88, 185, 157);
}

/* 分页 */
.page_Split {
  float: right;
  text-align: right;
  display: flex;
  justify-content: right;
  align-items: center;
  padding-right: 10px;
}

.red {
  color: red;
}

/* 表格 */
#table {
  background: white;
  text-align: center;
  color: #666666;
  font-size: 12px;
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #e4e4e4;
}

#table td,
#table th {
  border: 1px solid #e4e4e4;
  padding: 10px;
  height: 50px;
}

tbody > tr > td:nth-of-type(1) {
  width: 40px;
}

tbody > tr > td:nth-of-type(4) {
  width: 120px;
}

tbody > tr > td:nth-of-type(5) {
  width: 120px;
}

tfoot {
  height: 30px;
}

tfoot td {
  line-height: 30px;
}

tfoot select {
  width: 120px;
  height: 30px;
  appearance: none;
  outline: 0;
  border: 1px solid #e4e4e4;
  color: #666666;
  padding: 0 15px;
  background: white url("../assets/jiantou.png") no-repeat 95px 12px;
  border-radius: 1px solid #666666;
  background-size: 15px;
}

/* 表格头部 */
.xx {
  color: #666666;
  font-size: 12px;
  width: 100%;
  border: 1px solid #e4e4e4;
  margin-top: 20px;
}

.xx select,
.xx #select2 {
  width: 160px;
  height: 30px;
  appearance: none;
  outline: 0;
  border: 1px solid #e4e4e4;
  color: #666666;
  padding: 0 15px;
  background: white url("../assets/jiantou.png") no-repeat 130px 12px;
  border-radius: 1px solid #666666;
  background-size: 15px;
}

.xx tr {
  display: flex;
  justify-content: space-between;
  height: 50px;
  line-height: 50px;
  background: #f3f3f3;
}

.xx tr td {
  padding: 0 20px;
}

.xx #select2 {
  width: 120px;
  background: white url("../assets/jiantou.png") no-repeat 96px 12px;
  background-size: 15px;
}

/* ////////////////////////// */
* {
  margin: 0;
  padding: 0;
}

.bg_box {
  background: #f9f9f9;
}

.content_box {
  width: 85%;
  height: 100vh;
  /* background: skyblue; */
  margin: 0 auto;
}

.screening_F {
  height: 100px;
  border: 1px solid #e4e4e4;
  display: flex;
  flex-wrap: wrap;
}

.screen {
  width: 100%;
}

.screening_S1 {
  color: #666666;
  font-size: 12px;
  box-sizing: border-box;
  padding: 0 20px;
  background: #f3f3f3;
  height: 40%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screening_S2 {
  color: #666666;
  padding: 0 40px;
  display: flex;
  align-items: center;
  background: white;
  height: 60%;
  font-size: 14px;
}

.screening_S2 > .left {
  margin-right: 40px;
}

.screening_S2 select {
  width: 160px;
  height: 35px;
  appearance: none;
  outline: 0;
  border: 1px solid #e4e4e4;
  color: #666666;
  padding: 0 15px;
  background: url("../assets/jiantou.png") no-repeat 130px 12px;
  border-radius: 1px solid #666666;
  background-size: 15px;
}

.screening_S2 #select2 {
  width: 160px;
  height: 35px;
  appearance: none;
  outline: 0;
  border: 1px solid #e4e4e4;
  color: #666666;
  padding: 0 15px;
  border-radius: 1px solid #666666;
  background: url("../assets/rili.png") no-repeat 131px 9px;
  background-size: 15px;
}
.bottom {
  width: 100%;
  height: 100px;
  font-size: 14px;
  color: rgb(218, 218, 218);
  text-align: center;
}
</style>
  
  
  